package hello.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * Created by JingjingMa on 2017/05/26.
 *
 * @Email <a href="majinding888@163.com">majinding888@foxmail.com</a>
 */
@Component
public class MyMsgConsumer {
    private Logger log = LoggerFactory.getLogger(MyMsgConsumer.class);

    @KafkaListener(topics = {"test"})
    public void processMessage(String content) {
        log.info("processMessage-MyMsgConsumer<<<{}",content);
    }

    @KafkaListener(topics = {"test2"})
    public void processMessage2(String content) {
        log.info("processMessage2-MyMsgConsumer<<<{}",content);
    }

}
